package com.helei.controller;

import com.google.gson.Gson;
import com.helei.service.ApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @ Tool：IntelliJ IDEA
 * @ Author：hl
 * @ Date：2024-05-28-上午11:01
 */
@RestController
@RequestMapping("/")
public class testController {
    @PostMapping("/get_login_info")
    public void b(@RequestBody Map<Object,Object> map) {
        System.out.println("---登录：：：："+new Gson().toJson(map));
    }
    @PostMapping("/get_msg")
    public void get_msg(@RequestBody Map<Object,Object> map) {
        System.out.println("---登录：：：："+new Gson().toJson(map));
    }
    @GetMapping("/get_msg")
    public void get_stranger_info(HttpServletResponse response, HttpServletRequest request) {
        System.out.println("---登录：：：：");
    }
    @Autowired
    ApiService apiService;
    //群发好友
    @GetMapping("/get_friend_list")
    public void get_friend_list() {
        apiService.get_friend_list();
    }
    //群发群
    @GetMapping("/get_group_list")
    public void get_group_list() {
        apiService.get_group_list();
    }
}
